<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .justify-container {
            display: flex;
            justify-content: space-between;
            width: 100%;
        }

        .justify-container span {
            flex: 1;
            text-align: center;
        }

        /* 第一个和最后一个元素居左/居右 */
        .justify-container span:first-child {
            text-align: left;
        }

        .justify-container span:last-child {
            text-align: right;
        }
    </style>
</head>

<body>
    <div class="justify-container">
        <span>左对齐</span>
        <span>居中对齐</span>
        <span>右对齐</span>
    </div>

    <div>
</div>
</body>

</html>